package com.cyl.XmlDemo.service;

import java.util.List;

import com.cyl.XmlDemo.entity.Group;
import com.cyl.XmlDemo.entity.GroupUser;

/**
 * 群组管理服务接口
 * @author tyuio
 *
 */
public interface GroupService {
	
	/**
	 * 获取指定用户已加入的群组
	 * @param uid 用户id
	 * @return
	 */
	List<Group> getGroupByUid(int uid);
	
	//申请加入群组
	boolean joinGroup(GroupUser groupUser);
	//退出群组
	boolean quitGroup(GroupUser groupUser);
	//向群组发信息
	boolean sendMsgToGroup();
	//创建群组
	boolean createGroup(Group group);
	//加人进群组
	boolean addUserToGroup(GroupUser groupUser);
}
